package com.iwhalecloud.bss.kite.cucc.common.dto;


import com.iwhalecloud.bss.kite.cucc.common.util.DateFormatUtils;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;


public class RefreshCacheLogDTO implements Serializable {

    @Id
    private Long id;
    private String operatorCode;//操作员工编码
    private String refreshStatus;//操作状态0失败1成功
    private String qryCondition;//输入刷新条件
    private String refreshContent;//刷新缓存内容
    private String exceptionStack;//异常堆栈
    private String hostIp;//主机ip
    private String operateTime;//操作时间
    private String createTime;//创建时间
    private String updateTime;//修改时间
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOperatorCode() {
        return operatorCode;
    }

    public void setOperatorCode(String operatorCode) {
        this.operatorCode = operatorCode;
    }

    public String getRefreshStatus() {
        return refreshStatus;
    }

    public void setRefreshStatus(Integer refreshStatus) {
        this.refreshStatus = String.valueOf(refreshStatus);
    }

    public String getQryCondition() {
        return qryCondition;
    }

    public void setQryCondition(String qryCondition) {
        this.qryCondition = qryCondition;
    }

    public String getRefreshContent() {
        return refreshContent;
    }

    public void setRefreshContent(String refreshContent) {
        this.refreshContent = refreshContent;
    }

    public String getExceptionStack() {
        return exceptionStack;
    }

    public void setExceptionStack(String exceptionStack) {
        this.exceptionStack = exceptionStack;
    }

    public String getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(LocalDateTime operateTime) {
        this.operateTime = operateTime.format(DateTimeFormatter.ofPattern(DateFormatUtils.DATE_TIME_FORMAT));
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime.format(DateTimeFormatter.ofPattern(DateFormatUtils.DATE_TIME_FORMAT));
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime.format(DateTimeFormatter.ofPattern(DateFormatUtils.DATE_TIME_FORMAT));
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }
}
